package com.saihai.jiankang.HrmProvince.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.saihai.jiankang.HrmProvince.mapper.HrmProvinceMapper;
import com.saihai.jiankang.HrmProvince.domain.HrmProvince;
import com.saihai.jiankang.HrmProvince.service.IHrmProvinceService;

/**
 * 省Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
@Service
public class HrmProvinceServiceImpl implements IHrmProvinceService 
{
    @Autowired
    private HrmProvinceMapper hrmProvinceMapper;

    /**
     * 查询省
     * 
     * @param id 省主键
     * @return 省
     */
    @Override
    public HrmProvince selectHrmProvinceById(Long id)
    {
        return hrmProvinceMapper.selectHrmProvinceById(id);
    }

    /**
     * 查询省列表
     * 
     * @param hrmProvince 省
     * @return 省
     */
    @Override
    public List<HrmProvince> selectHrmProvinceList(HrmProvince hrmProvince)
    {
        return hrmProvinceMapper.selectHrmProvinceList(hrmProvince);
    }

    /**
     * 新增省
     * 
     * @param hrmProvince 省
     * @return 结果
     */
    @Override
    public int insertHrmProvince(HrmProvince hrmProvince)
    {
        return hrmProvinceMapper.insertHrmProvince(hrmProvince);
    }

    /**
     * 修改省
     * 
     * @param hrmProvince 省
     * @return 结果
     */
    @Override
    public int updateHrmProvince(HrmProvince hrmProvince)
    {
        return hrmProvinceMapper.updateHrmProvince(hrmProvince);
    }

    /**
     * 批量删除省
     * 
     * @param ids 需要删除的省主键
     * @return 结果
     */
    @Override
    public int deleteHrmProvinceByIds(Long[] ids)
    {
        return hrmProvinceMapper.deleteHrmProvinceByIds(ids);
    }

    /**
     * 删除省信息
     * 
     * @param id 省主键
     * @return 结果
     */
    @Override
    public int deleteHrmProvinceById(Long id)
    {
        return hrmProvinceMapper.deleteHrmProvinceById(id);
    }
}
